return {
	"olimorris/persisted.nvim",
	event = "BufReadPre", -- Ensure the plugin loads only when a buffer has been loaded
	opts = {
		-- Your config goes here ...
		autostart = true,

		-- Function to determine if a session should be saved
		---@type fun(): boolean
		should_save = function()
			return true
		end,

		save_dir = vim.fn.expand(vim.fn.stdpath("data") .. "/sessions/"), -- Resolves to ~/.local/share/nvim/sessions/

		autoload = true,

	},
}
